package com.umgsai.thread.thread01;

public class MyThread7 extends Thread {

	@Override
	public void run() {
		try {
			System.out.println("run threadName=" + this.currentThread().getName() + " begin");
			Thread.sleep(1000);
			System.out.println("run threadName=" + this.currentThread().getName() + " end");
		} catch (Exception e) {
			e.getStackTrace();
		}
	}
	
	public static void main(String[] args) {
		MyThread7 thread = new MyThread7();
		System.out.println("begin time=" + System.currentTimeMillis());
		thread.run();
		System.out.println("end time=" + System.currentTimeMillis());
	}
}
